package com.hpch.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hpch.business.entity.Article;
import com.hpch.business.param.ArticleParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 单页内容表Mapper
 *
 * @author EleAdmin
 * @since 2025-03-02 19:12:18
 */
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<Article>
     */
    List<Article> selectPageRel(@Param("page") IPage<Article> page,
                             @Param("param") ArticleParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<Article> selectListRel(@Param("param") ArticleParam param);

}
